print_narcissistic() {
    result=""
    for ((num = 100; num < 1000; num++)); do
        hundreds=$((num / 100))
        tens=$(((num / 10) % 10))
        units=$((num % 10))
        sum=$((hundreds ** 3 + tens ** 3 + units ** 3))
        if [ $sum -eq $num ]; then
            result="$result$num,"
        fi
    done
   echo "${result%,}"
}


print_narcissistic
